//
//  NSDictionary+Utility.m
//  QunariPhone
//
//  Created by 姜琢 on 12-12-24.
//  Copyright (c) 2012年 Qunar.com. All rights reserved.
//

#import "NSDictionary+JSON.h"

@implementation NSDictionary (JSON)

- (NSString *)JSONString
{
    NSError *error;
    NSData *cParamJson = [NSJSONSerialization dataWithJSONObject:self options:0 error:&error];
    NSString *cParamJsonStr = [[NSString alloc] initWithData:cParamJson encoding:NSUTF8StringEncoding];
    cParamJsonStr = [cParamJsonStr stringByReplacingOccurrencesOfString:@"\\/" withString:@"/"];

    return cParamJsonStr;
}

@end
